feat: carry-over Source and WHERE when navigating from Search to Chart Explorer#1964
Draft
feat: carry-over Source and WHERE when navigating from Search to Chart Explorer#1964
Conversation
Adds a button in the Search page toolbar that navigates to Chart Explorer with the current source and WHERE clause pre-populated. This allows users to quickly go from a search query to charting without re-selecting the data source or re-entering filters. The button appears as an icon (chart dots) next to the Save/Alerts buttons, with a tooltip reading 'Open in Chart Explorer'. It builds a Chart Explorer URL containing the config (source, where, whereLanguage) and the current time range (from, to). Resolves HDX-3781 Co-authored-by: Mike Shi <mike@hyperdx.io>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Contributor
E2E Test Results✅ All tests passed • 91 passed • 3 skipped • 964s
Tests ran across 4 shards in parallel. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an "Open in Chart Explorer" button to the Search page toolbar that carries over the currently selected source and WHERE clause when navigating to Chart Explorer. This eliminates the need for users to re-select their data source and re-enter filters when switching from Search to Chart Explorer.
The button appears as a chart icon (matching the Chart Explorer icon in AppNav) in the Search toolbar next to the Save/Alerts buttons. It includes a tooltip reading "Open in Chart Explorer" and builds a URL containing:
configJSON with the source ID, WHERE clause, WHERE language, and default chart settingsfrom/totime range parameters matching the current searched time rangeThe button is rendered as an anchor element, so users can also right-click → "Open in new tab" for a non-disruptive workflow.
How to test locally or on Vercel
level = 'error')References
Linear Issue: HDX-3781